package net.siren93.smh.service;

import net.siren93.smh.entity.EmployeeEntity;

import java.util.List;

/**
 * Created by siren93 on 15/9/25.
 */
public interface EmployeeService {
    EmployeeEntity findByName(String name);
    EmployeeEntity findById(int id);
    void saveOrUpdate(EmployeeEntity entity);
    Integer save(EmployeeEntity entity);
    List<EmployeeEntity> findAll();
    List<EmployeeEntity> findByPage(int page, int rows);
    void delById(int id);
}
